package com.community.util;

import org.apache.shiro.crypto.hash.SimpleHash;

public class Md5Util {

    public static String encodePassword(String source, String salt) {
        Object object = new SimpleHash("MD5", source, salt);
        return object.toString();
    }
}
